﻿
using System.Collections.ObjectModel;
namespace WPNextPhone8.ViewModel
{
    public class PullDownRefreshViewModel : BaseViewModel
    {
        #region Fields
        private ObservableCollection<string> _codes = new ObservableCollection<string>();
        #endregion

        #region Constructor
        public PullDownRefreshViewModel()
        {
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
            Codes.Add("sunyanfei");
        }
        #endregion

        #region Properties
        public ObservableCollection<string> Codes
        {
            get { return _codes; }
            set
            {
                if (value != _codes)
                {
                    _codes = value;
                    this.RaisePropertyChanged(() => this.Codes);
                }
            }
        }
        #endregion

    }
}
